package com.example.demo2_review.design_pattern.structural_patterns.adapt_pattern;

/**
 * @Author zwp14
 * @create 2024/6/24 20:23
 * @description 模板
 */
public class AdapterPatternDemo {
    public static void main(String[] args) {
        MediaAdapterServiceImpl audioPlayer = new MediaAdapterServiceImpl();
        audioPlayer.play("mpc", "beyond the horizon.mpc");
        audioPlayer.play("mp4", "alone.mp4");
        audioPlayer.play("vlc", "far far away.vlc");
        audioPlayer.play("avi", "mind me.avi");
    }
}
